package com.ding.second.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ding.second.dao.UserMapper;
import com.ding.second.po.User;
import com.ding.second.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService{

	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User getUserByAccount(Map<String, Object> userAccount) {
		return userMapper.getUserByAccount(userAccount);
	}

	@Override
	public User getUserByUserId(String userId) {
		return userMapper.getUserByUserId(userId);
	}

	@Override
	public boolean updateUserState(Map<String, Object> userInfo) {
		return userMapper.updateUserState(userInfo);
	}

	@Override
	public List<User> getUserByInfo(Map<String, Object> userInfo) {
		return userMapper.getUserByInfo(userInfo);
	}

	@Override
	public boolean updateUserInfo(User user) {
		return userMapper.updateUserInfo(user);
	}

}
